<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>UCARPP: includes/tabooList.h Source File</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>


</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">UCARPP
   &#160;<span id="projectnumber">1</span>
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.6.1 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('tabooList_8h.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="headertitle">
<div class="title">includes/tabooList.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="tabooList_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="preprocessor">#ifndef TABOOLIST_H_</span>
<a name="l00002"></a>00002 <span class="preprocessor"></span><span class="preprocessor">#define TABOOLIST_H_</span>
<a name="l00003"></a>00003 <span class="preprocessor"></span>
<a name="l00004"></a>00004 <span class="preprocessor">#include &quot;<a class="code" href="tabooExpire_8h.html">tabooExpire.h</a>&quot;</span>
<a name="l00005"></a>00005 
<a name="l00007"></a><a class="code" href="tabooList_8h.html#a16474a70fadde17cb52d39eb0e155f80">00007</a> <span class="keyword">typedef</span> <a class="code" href="tabooExpire_8h.html#a03a425df65af050afbb5cab3c16f4263">TabooExpire</a>** <a class="code" href="tabooList_8h.html#a16474a70fadde17cb52d39eb0e155f80">TabooMat</a>;
<a name="l00008"></a>00008 
<a name="l00009"></a>00009 <span class="comment">/* Singola struttura TabooList associata a un veicolo. */</span>
<a name="l00010"></a><a class="code" href="structTabooList.html">00010</a> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="structTabooList.html">TabooList</a> {
<a name="l00012"></a><a class="code" href="structTabooList.html#aa46b13c548b88eb0ae204b658d724eb6">00012</a>         <a class="code" href="tabooList_8h.html#a16474a70fadde17cb52d39eb0e155f80">TabooMat</a> <a class="code" href="structTabooList.html#aa46b13c548b88eb0ae204b658d724eb6">tm</a>;
<a name="l00014"></a><a class="code" href="structTabooList.html#a3b1040a552e16e4aff4c799f4ed766f3">00014</a>         <span class="keywordtype">int</span>* <a class="code" href="structTabooList.html#a3b1040a552e16e4aff4c799f4ed766f3">N</a>;
<a name="l00015"></a>00015 } <a class="code" href="tabooList_8h.html#a0207650022abd57e4b59cd14522c668a">TabooList</a>;
<a name="l00016"></a>00016 
<a name="l00017"></a>00017 <span class="comment">/* Puntatore di servizio. */</span>
<a name="l00018"></a><a class="code" href="tabooList_8h.html#a540c4d1dedf8f8cbe13a89e970c411bb">00018</a> <span class="keyword">typedef</span> <a class="code" href="structTabooList.html">TabooList</a>* <a class="code" href="tabooList_8h.html#a540c4d1dedf8f8cbe13a89e970c411bb">PtabooList</a>;
<a name="l00019"></a>00019 
<a name="l00020"></a>00020 <span class="comment">//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~COSTRUTTORI/DISTRUTTORI~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</span>
<a name="l00027"></a>00027 <span class="comment"></span><a class="code" href="structTabooList.html">PtabooList</a> <a class="code" href="tabooList_8h.html#abf3b03b1d02997b40f860bbd39585d0c">initTabooList</a>(<span class="keywordtype">int</span>* _N, <a class="code" href="tabooExpire_8h.html#a03a425df65af050afbb5cab3c16f4263">TabooExpire</a> now);
<a name="l00028"></a>00028 
<a name="l00036"></a>00036 <span class="keywordtype">void</span> <a class="code" href="tabooList_8h.html#a82902046cd8068e7cfaacb7f743629ec">freeTabooList</a>(<a class="code" href="structTabooList.html">PtabooList</a> ptl);
<a name="l00037"></a>00037 
<a name="l00038"></a>00038 
<a name="l00039"></a>00039 <span class="comment">//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~OPERAZIONI~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</span>
<a name="l00040"></a>00040 
<a name="l00041"></a>00041 
<a name="l00052"></a>00052 <span class="keywordtype">void</span> <a class="code" href="tabooList_8h.html#ac4d0d4ca23c79d6f5e7f2b96632eab5a">resetTabooList</a>(<a class="code" href="structTabooList.html">PtabooList</a> ptl,<a class="code" href="tabooExpire_8h.html#a03a425df65af050afbb5cab3c16f4263">TabooExpire</a> resetvalue);
<a name="l00053"></a>00053 
<a name="l00069"></a>00069 <span class="keywordtype">void</span> <a class="code" href="tabooList_8h.html#af83ae52ead1176cd3fdd3b4255411d50">setTaboo</a>(<a class="code" href="structTabooList.html">PtabooList</a> ptl, <a class="code" href="structEdgeID.html">PedgeID</a> edge, <span class="keywordtype">int</span> tenure, <a class="code" href="tabooExpire_8h.html#a03a425df65af050afbb5cab3c16f4263">TabooExpire</a> now);
<a name="l00070"></a>00070 
<a name="l00084"></a>00084 <span class="keywordtype">bool</span> <a class="code" href="tabooList_8h.html#a1d90532c5f8394075206b4d30d233bff">isEdgeTaboo</a>(<a class="code" href="structTabooList.html">PtabooList</a> p_tabooList, <a class="code" href="structEdgeID.html">PedgeID</a> p_edge, <a class="code" href="tabooExpire_8h.html#a03a425df65af050afbb5cab3c16f4263">TabooExpire</a> now);
<a name="l00085"></a>00085 
<a name="l00086"></a>00086 <span class="keywordtype">int</span> <a class="code" href="tabooList_8h.html#a9ae04f9e054c6127754b01ae31fc1c31">getEdgeTenure</a>(<a class="code" href="structTabooList.html">PtabooList</a> p_tabooList, <a class="code" href="structEdgeID.html">PedgeID</a> p_edge, <a class="code" href="tabooExpire_8h.html#a03a425df65af050afbb5cab3c16f4263">TabooExpire</a> now);
<a name="l00087"></a>00087 
<a name="l00088"></a>00088 <span class="comment">//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~STAMPA~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</span>
<a name="l00102"></a>00102 <span class="comment"></span><span class="keywordtype">void</span> <a class="code" href="tabooList_8h.html#ad12e8922507bfea10b6e9dfefbd6ebcc">printTabooList</a>(FILE* f, <a class="code" href="structTabooList.html">PtabooList</a> ptl);
<a name="l00103"></a>00103 
<a name="l00104"></a>00104 <span class="keywordtype">void</span> <a class="code" href="tabooList_8h.html#a37247571018795912c43319dca305898">printTabooListExpirations</a>(FILE* f, <a class="code" href="structTabooList.html">PtabooList</a> ptl, <a class="code" href="tabooExpire_8h.html#a03a425df65af050afbb5cab3c16f4263">TabooExpire</a> now, <span class="keywordtype">int</span> k);
<a name="l00105"></a>00105 
<a name="l00113"></a>00113 <span class="keywordtype">void</span> <a class="code" href="tabooList_8h.html#abe478d7773ae763650024e1db80132fa">printComparationTabooList</a>(FILE* f, <a class="code" href="structTabooList.html">PtabooList</a> ptl, <a class="code" href="tabooExpire_8h.html#a03a425df65af050afbb5cab3c16f4263">TabooExpire</a> now);
<a name="l00114"></a>00114 
<a name="l00122"></a>00122 <span class="keywordtype">void</span> <a class="code" href="tabooList_8h.html#af50f803f1691db5992547a1fb9538c51">printTabooListTenures</a>(FILE* f, <a class="code" href="structTabooList.html">PtabooList</a> ptl, <a class="code" href="tabooExpire_8h.html#a03a425df65af050afbb5cab3c16f4263">TabooExpire</a> now, <span class="keywordtype">int</span> k);
<a name="l00123"></a>00123 
<a name="l00138"></a>00138 <span class="keywordtype">void</span> <a class="code" href="tabooList_8h.html#a2ac5bfba3db64afa8d25b0894efcdc0f">printTabooListAsSet</a>(FILE* f, <a class="code" href="structTabooList.html">PtabooList</a> ptl, <a class="code" href="tabooExpire_8h.html#a03a425df65af050afbb5cab3c16f4263">TabooExpire</a> now, <span class="keywordtype">int</span> k);
<a name="l00139"></a>00139 
<a name="l00140"></a>00140 <span class="preprocessor">#endif </span><span class="comment">/* TABOOLIST_H_ */</span>
</pre></div></div><!-- contents -->
</div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="tabooList_8h.html">tabooList.h</a>      </li>

    <li class="footer">Generated on Thu Jun 27 2013 11:34:36 for UCARPP by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.6.1 </li>
   </ul>
 </div>


</body>
</html>
